package com.open.capacity.workflow3.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.open.capacity.reimburse.util.uuid.UUIDUtils;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * @author
 * @email
 * @date 2023-11-02 21:21:15
 */

@Data
public class NwfTaskRelation implements Serializable {
    private static final long serialVersionUID = 1L;


    private String id;

    private String taskId;

    private String userid;

    private Integer mark;

    private Integer result;

    private Integer sort;

    @JsonFormat(timezone="GMT+8",pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public NwfTaskRelation create() {
        id = UUIDUtils.getOriginalUUIDWithoutBar();
        mark = 0;
        return this;
    }
}
